package com.vote.vote.domain;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.util.Date;

/**
 * (TbVote)表实体类
 *
 * @author makejava
 * @since 2023-09-26 10:23:32
 */
@SuppressWarnings("serial")
public class TbVote extends Model<TbVote> {
    //投票作品唯一id
    private Long id;
    //作品封面
    private String vCover;
    //作品标题
    private String vTitle;
    //作品票数
    private Integer vCount;
    //用户的id
    private Integer vUid;
    //作品状态 0审核中 1审核通过 2审核不通过
    private Integer vState;
    //视频发布时间
    private Date createTime;
    //作品地址
    private String vUrl;
    //作品简介
    private String vDesc;
    //用户昵称
    private String nickName;
    //用户邮箱
    private String email;

    public TbVote(Long id, String vCover, String vTitle, Integer vCount, Integer vUid, Integer vState, Date createTime, String vUrl, String vDesc, String nickName, String email) {
        this.id = id;
        this.vCover = vCover;
        this.vTitle = vTitle;
        this.vCount = vCount;
        this.vUid = vUid;
        this.vState = vState;
        this.createTime = createTime;
        this.vUrl = vUrl;
        this.vDesc = vDesc;
        this.nickName = nickName;
        this.email = email;
    }

    public TbVote() {
    }

    public Long getId() {
        return id;
    }

    public TbVote setId(Long id) {
        this.id = id;
        return this;
    }

    public String getvCover() {
        return vCover;
    }

    public TbVote setvCover(String vCover) {
        this.vCover = vCover;
        return this;
    }

    public String getvTitle() {
        return vTitle;
    }

    public TbVote setvTitle(String vTitle) {
        this.vTitle = vTitle;
        return this;
    }

    public Integer getvCount() {
        return vCount;
    }

    public TbVote setvCount(Integer vCount) {
        this.vCount = vCount;
        return this;
    }

    public Integer getvUid() {
        return vUid;
    }

    public TbVote setvUid(Integer vUid) {
        this.vUid = vUid;
        return this;
    }

    public Integer getvState() {
        return vState;
    }

    public TbVote setvState(Integer vState) {
        this.vState = vState;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public TbVote setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getvUrl() {
        return vUrl;
    }

    public TbVote setvUrl(String vUrl) {
        this.vUrl = vUrl;
        return this;
    }

    public String getvDesc() {
        return vDesc;
    }

    public TbVote setvDesc(String vDesc) {
        this.vDesc = vDesc;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public TbVote setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getEmail() {
        return email;
    }

    public TbVote setEmail(String email) {
        this.email = email;
        return this;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TbVote{" +
                "id=" + id +
                ", vCover='" + vCover + '\'' +
                ", vTitle='" + vTitle + '\'' +
                ", vCount=" + vCount +
                ", vUid=" + vUid +
                ", vState=" + vState +
                ", createTime=" + createTime +
                ", vUrl='" + vUrl + '\'' +
                ", vDesc='" + vDesc + '\'' +
                ", nickName='" + nickName + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}

